<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xn="http://www.renren.com/2009/xnml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<Link Rel="SHORTCUT ICON" href="<?php echo Yii::app()->request->baseUrl;?>/images/ico.ico">
	
	<!-- blueprint CSS framework 
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/smoothform.css" />-->
	
	

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/javascript/jquery-1.4.2.min.js"></script>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<!--
<div class="container" id="page">

<div class="outframe">
<div class="row1"></div>
<div class="row2"></div>
<div class="row3"></div>
<div class="row4"></div>
<div class="inframe" >
	<div id="header">
		
	<div id="mainmenu" style="display:<?php if(Yii::app()->user->isGuest) echo 'none';else echo 'block'?>" >
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(

				array('label'=>'首页','url'=>array('/site/home')),
				array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>"登录", 'visible'=>Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->registrationUrl, 'label'=>"注册", 'visible'=>Yii::app()->user->isGuest),
				//array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>"登出"/*.' ('.Yii::app()->user->name.')'*/, 'visible'=>!Yii::app()->user->isGuest),

				//array('label'=>'Home', 'url'=>Yii::app()->getModule('user')->loginUrl),
				//array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				//array('label'=>'SignUp', 'url'=>array('/users/create')),
				//array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				//array('label'=>'Contact', 'url'=>array('/site/contact')),
				//array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
				
				//		'items'=>array(array('label'=>'home'),
				//						array('label'=>'friends')))

			),
		)); ?>
		
	</div> --><!-- mainmenu -->
	<!--
	<div id="logo" style="background-color:#ccffff"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/SweetNS logo2.png"  ;" />
		</div>
	</div>
	
	</div>
<div class="row4"></div>
<div class="row3"></div>
<div class="row2"></div>
<div class="row1"></div>
</div>

	
	

	



</div>
-->
	<div id="top" alink='white'><div id="topinside">
		<div id="logo">
			<?php echo CHtml::link("首页", array("/"), array("id"=>"logo")); ?>
		</div>
				<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(

			array('label'=>'首页','url'=>array('/')),
				array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>"登录", 'visible'=>Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->registrationUrl, 'label'=>"注册", 'visible'=>Yii::app()->user->isGuest),
				//array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>"登出", 'visible'=>!Yii::app()->user->isGuest),

				//array('label'=>'Home', 'url'=>Yii::app()->getModule('user')->loginUrl),
				//array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				//array('label'=>'SignUp', 'url'=>array('/users/create')),
				//array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				//array('label'=>'Contact', 'url'=>array('/site/contact')),
				//array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
				
				//		'items'=>array(array('label'=>'home'),
				//						array('label'=>'friends')))

			),
		)); ?>
	</div> <!-- topinside -->
</div> <!-- top -->
<?php echo $content;?>
				
	<div id="footer">
		Copyright &copy; <?php echo date('Y'); ?> by SixGray.<br/>
		All Rights Reserved.<br/>
		<?php echo Yii::powered(); ?>
	</div>
</body>
</html>